-- GENERATED SPELL FOR [Dreadscorn] --


function spell0_8304(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8304', 2270, 1)
end

function spell1_8304(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(21049,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8304', 30296, 1)
end

function spell2_8304(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(12057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8304', 591, 1)
end

function Sorts_8304(pUnit, Event)
local choix_sorts_8304 = math.random(0, 2)
if choix_sorts_8304 == 0 then
pUnit:RegisterEvent('spell0_8304', 1, 1)
end
if choix_sorts_8304 == 1 then
pUnit:RegisterEvent('spell1_8304', 1, 1)
end
if choix_sorts_8304 == 2 then
pUnit:RegisterEvent('spell2_8304', 1, 1)
end
end

function mob8304_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8304', math.random(1500, 3000), 1)
end

function mob8304_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8304_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8304_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8304, 1, 'mob8304_Action')
RegisterUnitEvent(8304, 2, 'mob8304_Leave')
RegisterUnitEvent(8304, 3, 'mob8304_Kill')
RegisterUnitEvent(8304, 4, 'mob8304_Die')
